/*
 * @Author: your name
 * @Date: 2020-09-18 10:44:29
 * @LastEditTime: 2020-12-25 14:30:44
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \egg-RESTfulAPI\app\model\carRealTime.js
 */
module.exports = app => {
  const mongoose = app.mongoose
  const SceneEtcStationSchema = new mongoose.Schema({
    stationName1: { type: String, unique: false },
    stationName2: { type: String, unique: false },
    stationType: { type: Number, unique: false },
    roadId: { type: Number, unique: false },
    lon: { type: Number, unique: false },
    lat: { type: Number, unique: false },
    belongRoadId: { type: Number, unique: false },

  }, { timestamps: { createdAt: 'created', updatedAt: 'updated' }, usePushEach: true })

  return mongoose.model('SceneEtcStation', SceneEtcStationSchema)
}



